package com.bm.server.controller;

import com.bm.common.vo.R;
import com.bm.server.service.intf.RandomUserService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
@RequestMapping("/server/randomUser")
public class RandomUserController {
    @Resource
    private RandomUserService service;
    @GetMapping("/random.do")
    public R random(@RequestParam  long uid){
        return service.randomUser(uid );
    }
}
